import request from '@/utils/request'

// 查询竞赛证书认证列表
export function listAward(query) {
  return request({
    url: '/learnmanagement/award/list',
    method: 'get',
    params: query
  })
}

// 查询竞赛证书认证详细
export function getAward(id) {
  return request({
    url: '/learnmanagement/award/' + id,
    method: 'get'
  })
}

// 新增竞赛证书认证
export function addAward(data) {
  return request({
    url: '/learnmanagement/award',  
    method: 'post',
    data: data
  })
}

// 修改竞赛证书认证
export function updateAward(data) {
  return request({
    url: '/learnmanagement/award',
    method: 'put',
    data: data
  })
}

// 删除竞赛证书认证
export function delAward(id) {
  return request({
    url: '/learnmanagement/award/' + id,
    method: 'delete'
  })
}
